<?php

namespace api\modules\v1\controllers;
use yii\data\ActiveDataProvider;
class RegionsController extends BaseController
{
    //public $modelClass = 'api\models\Region';
    public function actionIndex($pid = 0)
    {
        return \backend\models\Region::getCurrSubNode($pid);
    }
    public function actionCreate(){
        return ['code'=>1];
    }
}
